#include <page.h>
#include <common.h>
#include <string.h>

static PPageAction g_ptPageList = NULL;

void PageRegisterInList(PPageAction ptPageAction)
{
    ptPageAction->ptNext = g_ptPageList;
    g_ptPageList = ptPageAction;
}

PPageAction SelectPageInList(char *name)
{
    PPageAction ptTmp = g_ptPageList;
    while(ptTmp)
    {
        if(strcmp(ptTmp->name, name) == 0)
        {
            return ptTmp;
        }
        else
        {
            ptTmp = ptTmp->ptNext;
        }
    }
    return NULL;
}




void PageRegister (void)
{
    extern void MainPageRegister() ;
    MainPageRegister();
}